package net.httpconn;

import java.io.PrintWriter;
import java.io.StringWriter;

class ExceptionLogger {
	
	protected  static String logThrowable(Throwable t) {
		StringWriter sw = new StringWriter();
		PrintWriter pw = new PrintWriter(sw, true);
		pw.flush();
		t.printStackTrace(pw);
		sw.flush();
		return sw.toString();
	}
}
